<Toolbar>
  <ToolbarActions>
    {{#if model.config.mode}}
      <ToolbarLink
        @params={{array "mode.secondaries.config-edit" model.config.id}}
        @data-test-replication-link="edit-mount-config"
      >
        Edit config
      </ToolbarLink>
    {{else}}
      <ToolbarLink
        @params={{array "mode.secondaries.config-create" model.config.id}}
        @data-test-replication-link="create-mount-config"
      >
        Create config
      </ToolbarLink>
    {{/if}}
  </ToolbarActions>
</Toolbar>
<div class="box is-fullwidth is-shadowless is-marginless">
  <h4 class="title is-5 is-marginless">
    Mount filter config for <code>{{model.config.id}}</code>
  </h4>
</div>
{{#if model.config.mode}}
  <div class="box is-fullwidth is-shadowless">
    {{info-table-row label="Mode" value=model.config.mode data-test-mount-config-mode=true}}
    {{#info-table-row label="Paths" value=model.config.paths}}
      <ul class="list--comma" data-test-mount-config-paths=true>
        {{#each model.config.paths as |path|}}
          <li>
            <code class="has-text-black">{{path}}</code>
          </li>
        {{/each}}
      </ul>
    {{/info-table-row}}
  </div>
{{else}}
  <EmptyState
    @title="No config yet"
    @message="Performance Mount Filtering is not configured for this secondary"
  />
{{/if}}
